import { Rule } from "./types";

export const Flake8PieRuleList: Rule[] = [
    {
        code: "PIE790",
        name: "unnecessary-pass",
        descEn: "Unnecessary pass statement",
        descCn: "",
        autoFix: true,
    },
    {
        code: "PIE794",
        name: "duplicate-class-field-definition",
        descEn: "Class field {name} is defined multiple times",
        descCn: "",
        autoFix: true,
    },
    {
        code: "PIE796",
        name: "non-unique-enums",
        descEn: "Enum contains duplicate value: {value}",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PIE800",
        name: "unnecessary-spread",
        descEn: "Unnecessary spread **",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PIE804",
        name: "unnecessary-dict-kwargs",
        descEn: "Unnecessary dict kwargs",
        descCn: "",
        autoFix: true,
    },
    {
        code: "PIE807",
        name: "reimplemented-list-builtin",
        descEn: "Prefer list over useless lambda",
        descCn: "",
        autoFix: true,
    },
    {
        code: "PIE810",
        name: "multiple-starts-ends-with",
        descEn: "Call {attr} once with a tuple",
        descCn: "",
        autoFix: true,
    },
];